package cn.dubito.springcloud.service;

import cn.dubito.springcloud.entity.Dept;

import java.util.List;

/**
 * @author liliang
 * @description:
 * @date 2018/5/19.
 */
public interface DeptService {

    /**
     * 添加
     * @param dept
     * @return
     */
    boolean add(Dept dept);

    /**
     * 查找
     * @param deptNo
     * @return
     */
    Dept get(Long deptNo);

    /**
     * 查找全部
     * @return
     */
    List<Dept> list();
}
